package com.mcgrady.start;

import org.junit.Test;
import org.junit.experimental.theories.suppliers.TestedOn;

/**
 * @author McGrady
 */
public class PackingTest {
    @Test
    public void boxing() {
        Byte by = 100;
        Short sh = 21;
        Integer in = 233;
        Long lo = 34345L;
        Double de = 232.78;
        Float fl = 23.6F;
        Boolean bo = false;
        Character ch = 'v';
        System.out.println(by);
        System.out.println(sh);
        System.out.println(in);
        System.out.println(lo);
        System.out.println(de);
        System.out.println(fl);
        System.out.println(bo);
        System.out.println(ch);
    }

    @Test
    public void unBoxing() {
        Integer in = new Integer(12);
        int result = in;
        System.out.println(result);
    }
}
